home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
asm
/
bmac.arc
/
TITLE.MAC
< prev
Wrap
Text File
|
1988-07-27
|
768b
|
45 lines
.XLIST
IF1
; title.mac 15 Nov 83 Craig Milo Rogers at USC/ISI
; Created these macros to make titles better.
.TITLE MACRO TEXT
TITLE TEXT
ENDM
.SBTTL MACRO TEXT
IF1
@TTLNUM = @TTLNUM + 1
@SBTTL <TEXT>,%@TTLNUM,%@PAGNUM
ELSE
SUBTTL TEXT
ENDIF
ENDM
.SBHED MACRO TEXT
IF1
@TTLNUM = @TTLNUM + 1
@PAGNUM = @PAGNUM + 1
@SBTTL <TEXT>,%@TTLNUM,%@PAGNUM
ELSE
SUBTTL TEXT
PAGE +
ENDIF
ENDM
@SBTTL MACRO TEXT,TNUM,PNUM
IF &TNUM LT 10
@TTL0&TNUM EQU 'Page &PNUM: &TEXT'
ELSE
@TTL&TNUM EQU 'Page &PNUM: &TEXT'
ENDIF
ENDM
@TTLNUM = 0 ; Number of subtitles.
@PAGNUM = 1 ; Current "page" number.
ELSE
PAGE ,132 ; Line printer width
ENDIF
.LIST